package com.collect.zambia.zhiBean.zhiReceive;

import com.collect.zambia.zhiUtils.StringUtil;

import java.io.Serializable;

public class ZHIRCheckInOutEntity implements Serializable {
    //CLOCK_IN, CLOCK_OUT,COMPLETED
    public static final String CLOCK_IN = "CLOCK_IN";
    public static final String CLOCK_OUT = "CLOCK_OUT";
    public static final String COMPLETED = "COMPLETED";

    private String signStatus;

    private String date;
    private String start;
    private String end;

    public String getSignStatus() {
        return StringUtil.safeString(signStatus);
    }

    public boolean isToCheckIn(){
        return getSignStatus().equalsIgnoreCase(CLOCK_IN);
    }

    public boolean isToCheckOut(){
        return getSignStatus().equalsIgnoreCase(CLOCK_OUT);
    }

    public boolean isToCheckDone(){
        return getSignStatus().equalsIgnoreCase(COMPLETED);
    }

    public void setSignStatus(String signStatus) {
        this.signStatus = signStatus;
    }

    public String getDate() {
        return StringUtil.safeString(date);
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getStart() {
        return StringUtil.safeString(start);
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return StringUtil.safeString(end);
    }

    public void setEnd(String end) {
        this.end = end;
    }
}
